package mapper;

import entity.Emp;
import entity.EmpDTO;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

public interface EmpMapper {
    List<Emp> selectAll();
    List<Emp> selectByDeptid(String empaName);
    List<EmpDTO> selectAllEmpAnDepartName();
    List<Map> selectAllEmpAndDepartNameByMap();
    Emp selectById(Integer id);
    Emp selectoneByNameAnSalary(@Param(value = "empName") String empName,
                                @Param("salary")BigDecimal salary);

int updateEmp(Emp emp);
int deleteEmp(Emp emp);

    int insertEmp(Emp newEmp);
}
